<!DOCTYPE html>
<html>
<head>
<title>{$user.nick_name}  - 我的预约</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>

<body class="body-white" id="top">
<include file="public@nav" />

	<div class="container tc-main">
		<div class="row">
			<div class="col-md-3">
				<include file="public@usernav" />
			</div>
			<div class="col-md-9">
				<div class="tabs">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-star"></i> 我的预约</a></li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active" id="one">
							<br>
							<table class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>创建时间</th>
										<th>预约时间</th>
										<th>过期时间</th>
										<th>预约定金</th>
                                                                                <th>预约产品</th>
                                                                                <th>预约状态</th>
                                                                                <th>是否来店</th>
									</tr>
								</thead>
								<tbody>
                                                                    <foreach name="list" item="vo">
                                                                            <tr>
                                                                                <td>{:date('Y-m-d H:i:s',$vo['app_time'])}</td>
                                                                                <td>{:date('Y-m-d H:i:s',$vo['appone_time'])}</td>
                                                                                <td>{:date('Y-m-d H:i:s',$vo['end_time'])}</td>
                                                                                <td>{$vo.money}</td>
                                                                                <td>{$vo.goods_name}</td>
                                                                                <td><?php $type = $vo['status'];switch($type){case 1: echo "预约成功";break;case 2: echo "预约失败";break;} ?></td>
                                                                                <td><?php $type = $vo['for_status'];switch($type){case 1: echo "是";break;case 2: echo "否";break;} ?></td>
                                                                            </tr>
                                                                    </foreach>
								</tbody>
							</table>
							<div class="pagination">{$page|default=''}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<include file="public@footer" />
	</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>